package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.WendaTag;
import cn.wolfcode.luowowo.article.mapper.WendaTagMapper;
import cn.wolfcode.luowowo.article.service.IWendaTagService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
@Service
public class WendaTagServiceImpl implements IWendaTagService {

    @Autowired
    private WendaTagMapper wendaTagMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return wendaTagMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(WendaTag wendaTag) {
        return wendaTagMapper.insert(wendaTag);
    }

    @Override
    public WendaTag selectByPrimaryKey(Long id) {
        return wendaTagMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<WendaTag> selectAll() {
        return wendaTagMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(WendaTag wendaTag) {
        return wendaTagMapper.updateByPrimaryKey(wendaTag);
    }

    @Override
    public List<WendaTag> getTags(Long id) {
        return wendaTagMapper.getTags(id);
    }
}
